package com.mc.factory;

public class Factory {
	public static AbstractProduct factory(String type){
		if("A".equals(type))
			return new ConcreteProductA();
		else
			return new ConcreteProductB();
	}
}
